package com.wlkj.action.login;

import com.jfinal.core.Controller;
import com.jfinal.kit.HttpKit;
import com.wlkj.config.UrlKit;

public class LoginAction extends Controller {

	public void login() {
		String param = HttpKit.readData(this.getRequest());
		System.out.println("param :: " + param);
		String result = HttpKit.post(UrlKit.login, param);
		renderJson(result);
	}

	public void check() {
		String param = HttpKit.readData(this.getRequest());
		String result = HttpKit.post(UrlKit.check, param);
		renderJson(result);
	}

	public void checkUser() {
		String param = HttpKit.readData(this.getRequest());
		String result = HttpKit.post(UrlKit.checkUser, param);
		renderJson(result);
	}

	public void setPwd() {
		String param = HttpKit.readData(this.getRequest());
		String result = HttpKit.post(UrlKit.setPwd, param);
		renderJson(result);
	}

	public void saveBaseInf() {
		String param = HttpKit.readData(this.getRequest());
		String result = HttpKit.post(UrlKit.saveBaseInf, param);
		renderJson(result);
	}

}
